package info.hexin.redis;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * Created by infi.he on 2016/1/28.
 */
public abstract class AbstractRedisTest {
    ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("app.xml");
    final RedisTemplate redisTemplate = applicationContext.getBean(RedisTemplate.class);

    public RedisTemplate getRedisTemplate() {
        return redisTemplate;
    }
}
